home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-18 | 3.5 KB | 86 lines | [TEXT/R*ch] |
- Customizing the Progress Dialog in InstallerMaker 3.0:
- ==================================================================
-
- A technical memorandum.
-
- Copyright © 1990-96, Aladdin Systems, Inc., All Rights Reserved.
-
- ==================================================================
-
- This memo describes the procedure for modifying the installation progress
- dialogs that appear when an InstallerMaker product installer runs. We will
- readily admit that the procedure isn't simple: we will probably come out with
- an integrated editor for this dialog in the near future. But until then, we
- release these notes for developers who want to change the appearance of this
- dialog.
-
- Why Not a DITL?
- ---------------
- Because we can't. The Dialog Manager does not allow developers to control the
- order in which items redraw. For a movable modal progress dialog, this means
- that we could not guarantee that the dialog would correctly redraw if a portion
- of the dialog was erased by another window. By "rolling" our own window, we
- can get the control we needed, and that the Dialog Manager would deny us. By
- using these resources instead of DITLs for our custom routines, we make our
- installers smaller, and help you get your software on less disks.
-
- How to Modify the Progress Dialog
- ---------------------------------
- Until we produce an editor to modify our custom resources, you will need to
- modify these resources yourself to change the size of the progress dialog and
- the position of its items. The dialog contains xx elements, all of which you
- can modify:
-
- 1) A set of PICTs that act as a "backdrop";
- 2) A set of resources that position two text elements within the backdrop;
- 3) A resource that determines the position of the progress bar itself;
- 3) A set of resources that determine the font and font size for the text items;
- 4) A resource that sets the RGB color of the "fluid" that fills our progress
- bar "thermometor".
-
- You'll need to modify these resources in Resorceror or ResEdit; we've supplied
- some templates to help you with this.
-
- Progress screen (the "backdrop"):
- ---------------------------------
-
- PICT 127 and 129 are pictures to display in progress window. Window will be same size as
- this PICT and drawn in upper third of screen.
-
- B&W is PICT 127
- Color is PICT 129.
-
- (PICT 128 was the ID of the B&W PICT through IM 2.0. It is no longer used
- in IM as of version 2.0.1. )
-
- Both PICTs need their progress bars to be in exactly the same place.
-
- Note that a black and white PICT needs to be an old style, one bit deep
- picture. Grey scale is *not* equivalent, and in fact, may crash older
- Macintoshes. We recommend that you check your black and white pictures on a
- non-Color Quickdraw capable Macintosh, such as a Mac Plus running System
- Software 6.0.5 or earlier.
-
-
- Other Resources
- ---------------
- The following resources are used to nail various features down in the progress
- dialog:
-
-
- Font 128: if one byte in length is a one byte absolute font number.
- (this s/b used only with number 0 for system font, 1 for appl. font.)
- Otherwise is a pascal string of the name of the font to use
- ("Helvetica", "New York").
-
- Font 129 is an unsigned byte with the point size to use. (should have descenders <= 4)
-
- Prog 1 is an 8 byte rectangle showing where the progress bar should be.
-
- Rect 0 contains the rectangle where the current file being installed info
- should be shown. The text will be drawn at coordinates left, bottom-4.
-
- Rect 1 is the same for the count (x of y Items)
-
- Colr 128 is a 3 word RGB color selector for the color of the progress bar.
-